package cn.itcast.bos.domain.page;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import org.apache.poi.ss.formula.functions.T;

import cn.itcast.bos.domain.take_delivery.Promotion;

 

//指定webService要传输的实体类名
@XmlRootElement(name="pageBean")
//本对象需要返回给请求端   webServiceCXF传输对象返回带有泛型的集合 需要在泛型的类上添加@XmlSeeAlso注解 否则保存
@XmlSeeAlso({Promotion.class})
public class PageBean <T>{
     private  Long totalCount;    //总记录数
     private List<T> pageDate;  //当前页数据
	public Long getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Long totalCount) {
		this.totalCount = totalCount;
	}
	public List<T> getPageDate() {
		return pageDate;
	}
	public void setPageDate(List<T> pageDate) {
		this.pageDate = pageDate;
	}
     
     
}
